Release 10.1A: OpenEdge Development:
Progress Dynamics Web Development Guide


Invoking JavaScript APIs from the server

You use the UI Manager’s setClientAction procedure to invoke JavaScript APIs from the server. Typically, you use setClientAction to implement a UI change on the DHTML client in response to some condition created by the server-side business logic.

For example, the following code hides the address2 field in the customerfullo WDO:

gshUIManager = DYNAMIC-FUNCTION("getManagerHandle":U IN THIS-PROCEDURE, 
"UserInterfaceManager":U). 
RUN setClientAction IN gshUIManager ('customerfullo.address2.hide'). 

The setClientAction procedure runs separately for each WDO. (See the "WebDataObject (wdo)" section in Appendix A, "JavaScript API Reference," for a list of WDOs.) Calls to setClientAction are queued until the end of the Web request, at which time they are sent to the DHTML client as part of the response data stream.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095